package cn.kai.service.chain;

import cn.kai.constant.FlowConstant;
import cn.kai.process.flow.core.Node;
import cn.kai.process.flow.core.NodeContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 Author: cKnight
 Date: 2025/1/23
 */
@Component("bComponent")
@Slf4j
public class BNode implements Node {
    @Override
    public void execute(NodeContext context) {
        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        context.setData(FlowConstant.ORDER_POW_CHECK,true);
        log.info("执行了B组件");
    }
}
